package com.deep.ware.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.deep.common.utils.PageUtils;
import com.deep.ware.model.entity.PurchaseEntity;
import com.deep.ware.model.vo.MergePurchaseVO;
import com.deep.ware.model.vo.PurchaseFinishVO;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

/**
 * 采购信息
 *
 * @author deep
 * @email ${email}
 * @date 2022-01-13 17:24:59
 */
public interface PurchaseService extends IService<PurchaseEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryUnreceivedPurchase(@RequestParam Map<String, Object> params);

    /**
     * 合并采购单
     * @param mergeVO
     */
    void mergePurchase(MergePurchaseVO mergeVO);

    void receivePurchase(List<Long> ids);

    void finishPurchase(PurchaseFinishVO finishVO);
}

